package com.sdy.hospitalguard.biz.service;

import com.sdy.hospitalguard.biz.model.HospitalUser;
import com.sdy.mvc.service.BaseService;

/**
 * <p>
 * 医院用户表 服务类
 * </p>
 *
 * @author zzq
 * @since 2020-05-08
 */
public interface HospitalUserService extends BaseService<HospitalUser> {

    HospitalUser getUserByWxid(String wxid);

    HospitalUser xGetOrCreateUserByWxid(String wxid);

    HospitalUser createUser(String phone, String wxid);

    HospitalUser getUserByPhone(String phone);

    HospitalUser getUserByIdCard(String idCard);

    /**
     * 用户注册
     *
     * @param hospitalUser
     * @param userId
     * @return
     */
    Boolean userRegister(HospitalUser hospitalUser, Integer userId) throws Exception;

}
